﻿using System;
using System.Html.DOM;

namespace App
{
    [JsonNameQuote(true)]
    public class Main
    {
        [EvalAtCompile]
        private const int count = 0;

        public void Do()
        {
            var o = new { X = 0, Y = 0 };
        }

        public void ArrayFunc()
        {
            
        }

        [JsNative]
        public void X()
        {
            /*
            var x = 100;
            eval('5+10');
            */
        }
    }

    [NoCompile]
    public interface IRunnable
    {
    }

    //This class will not compile to js file. but you can use it as a strong data type.
    //e.g. in some method(below is C#):
    //    var d = result as DataSample;
    //    int c = d.x;
    //it will compile to(below is JS):
    //    var d = result;
    //    int c = d.x;
    //above is valid js code.
    //but you can not use it to create object -- var x = new DataSample() in C# is not correct,
    // it will translate to var x = new DataSample() in js, since the class is not compile to js.
    [NoCompile]
    public class DataSample
    {
        public int x;
        public int y;
    }
}
